<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Standard Deck of Cards</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for Cards"><tr><td>Cards</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Standard Deck of Cards</h2>

<h3>Description</h3>

<p>A character vector with two or three character representations of
each card in a standard 52-card deck.
</p>


<h3>Usage</h3>

<pre>
Cards
</pre>


<h3>Details</h3>

<p>The 2 of clubs is represented as &quot;2C&quot;, while the 10 of diamonds is &quot;10D&quot;.
</p>


<h3>Examples</h3>

<pre>
if (require(mosaic)) {
  deal(Cards, 13)        # bridge hand
  deal(Cards, 5)         # poker hand
  shuffle(Cards)         # shuffled deck
}

</pre>


</body></html>
